<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <meta charset="UTF-8">
   <link rel="stylesheet" href="__PUBLIC__/css/common.css">
   <link rel="stylesheet" href="__PUBLIC__/css/main.css">
   <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
   <script type="text/javascript" src="__PUBLIC__/js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
   
   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        
      }); 

  	function deleteWbar(url, obj) {
		   if (confirm("您确定要删除该网吧吗？")) {
			   window.location = url;
		   } 
	}
  	function editWbar(url, obj) {
			   window.location = url;
	}
   </script>
</head>
<body>

     <div id="table" class="mt10">
        <div class="box span10 oh">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="5%">序号</th>
                   <th width="15%">名称</th>
                   <th width="15%">联系方式</th>
                   <th width="10%">老板姓名</th>
                   <th width="30%">地址</th>
                      <th width="10%">密码</th>
                   <th width="20%">操作</th>
                    </tr>
                    
               <foreach name="wlist" item="wb">
                <tr class="tr">
                	<td class="td_center">{{$key+1}}</td>
                   	<td><a href="{{:U('Index/bangStore')}}?id={{$wb.id}}">{{$wb.name}}</a></td>
                   	<td>{{$wb.phone}}</td>
                   	<td>{{$wb.boss_name}}</td>
                   	<td>{{$wb.address}}</td>
                   	<td>{{$wb.password}}</td>
                  	<td>
                  	  <input type="button" name="button" class="btn btn82 btn_add" value="修改" onclick="javascript:editWbar('{{:U('Index/editWangba')}}?id={{$wb.id}}', this);">
      				  <input type="button" name="button" class="btn btn82 btn_del" value="删除" onclick="javascript:deleteWbar('{{:U('Index/delWangba')}}?id={{$wb.id}}', this);">
                  	 </td>
                </tr>
              </foreach>
              </table>
             <!-- <div class="page mt10">
                <div class="pagination">
                  <ul>
                      <li class="first-child"><a href="#">首页</a></li>
                      <li class="disabled"><span>上一页</span></li>
                      <li class="active"><span>1</span></li>
                      <li><a href="#">2</a></li>
                      <li><a href="#">下一页</a></li>
                      <li class="last-child"><a href="#">末页</a></li>
                  </ul>
                </div>
              </div>
        </div>
         --> 
     </div>
     
     
</body>
</html>